import request from '@/utils/request'

export function publishNew(data) {
  return request({
    url: '/PMSystem/news',
    method: 'post',
    data
  })
}

export function getDetails(id) {
  return request({
    url: `/PMSystem/news/${id}`,
    method: 'get'
  })
}

export function userGetNewList(params) { // 普通用户获取新闻资讯列表
  return request({
    url: '/PMSystem/news',
    method: 'get',
    params
  })
}
